package fr.esiea.es_inf5042.gui;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;

import fr.esiea.es_inf5042.R;

public class BargainDialog extends Dialog{
	
	
	
	private String bargainTitle;
	
	public BargainDialog(Context context, String bargainTitle) {
		super(context);
		
		this.bargainTitle = bargainTitle;
	}

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		updateUser();
	}
	
	private void updateUser() {
		setContentView(R.layout.bargain_dialog);
		setTitle(bargainTitle);
		setCancelable(true);
	}
	
}